<ul class="layui-side-scroll">
    <div class="layui-logo" lay-href="home/console.html">
        <span>XiaoMing</span>
    </div>

    <ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">


        <?php function CheckPower($power){
                        if($_SESSION["ltq_game_admin_user"]['power']=='all')
                            return 1;

                        $powers=explode(',',$_SESSION["ltq_game_admin_user"]['power']);

                        if (!in_array($power,$powers)) {
                            return 0;
                        }
                        return 1;
         }
         if($powers[0]==1 || (isset($powers[3]) && $powers[3]==1 || (isset($powers[7]) && $powers[7]==1) || (isset($powers[4]) && $powers[4]==1))){ ?>
            <li data-name='1' class="layui-nav-item">
                <a  href="javascript:void(0);" lay-tips='会员管理' lay-direction='2'>
                    <i class="layui-icon layui-icon-user "></i>
                    <cite>会员管理</cite>
                    <span class="layui-nav-more"></span></a>
                <dl class="layui-nav-child">
                    <?php if(CheckPower('3')) { ?>
                    <dd><a lay-href='/member/index'><i class="layui-icon layui-icon-username"></i>用户管理</a></dd>
                    <?php } if(CheckPower('7')) {?>
                    <dd><a lay-href='/freeze/index'><i class="layui-icon layui-icon-password"></i>冻结管理</a></dd>
                    <?php } ?>
                    <dd><a lay-href='/member/test'><i class="layui-icon layui-icon-password"></i>测试账号</a></dd>
                </dl>
            </li>
        <?php } ?>
        <!--<?php if($powers[0]==1 || (isset($powers[8]) && $powers[8]==1)){ ?>
        <li data-name='2' class="layui-nav-item">
            <a  lay-href='/Gamecard/gold' lay-tips='金币操作' lay-direction='2'>
                <i class="layui-icon layui-icon-util"></i>
                <cite>金币操作</cite></a>
        </li>
        <?php } ?>-->
        <?php if($powers[0]==1 || (isset($powers[2]) && $powers[2]==1)){ ?>
            <li data-name='2' class="layui-nav-item">
                <a  lay-href='/Gamecard/index' lay-tips='游戏卡' lay-direction='2'>
                    <i class="layui-icon layui-icon-util"></i>
                    <cite>游戏卡</cite></a>
            </li>
        <?php } ?>
        <?php if($powers[0]==1 || (isset($powers[14]) && $powers[14]==1)){ ?>
        <li data-name='2' class="layui-nav-item">
            <a  lay-href='/Gamecard/getcard' lay-tips='银币卡' lay-direction='2'>
                <i class="layui-icon layui-icon-template"></i>
                <cite>银币卡</cite></a>
        </li>
        <?php } ?>
        <?php  if($powers[0]==1 || (isset($powers[13]) && $powers[13]==1)){ ?>
        <li data-name='13' class="layui-nav-item">
            <a  href="javascript:void(0);" lay-tips='兑换审核' lay-direction='2'>
                <i class="layui-icon layui-icon-auz"></i>
                <cite>兑换审核</cite>
                <span class="layui-nav-more"></span></a>
            <dl class="layui-nav-child">
                <dd><a lay-href='/Bankrecored/exchange'><i class="layui-icon layui-icon-username"></i>审核中</a></dd>
                <dd><a lay-href='/Bankrecored/exchange_pass'><i class="layui-icon layui-icon-password"></i>审核通过</a></dd>
                <dd><a lay-href='/Bankrecored/exchange_no'><i class="layui-icon layui-icon-add-1"></i>审核未通过</a></dd>
            </dl>
        </li>
        <?php } ?>
        <?php  if($powers[0]==1 || (isset($powers[11]) && $powers[11]==1)){ ?>
        <li data-name='3' class="layui-nav-item">
            <a lay-href='/Bankrecored/index' lay-tips='充值统计' lay-direction='2'>
                <i class="layui-icon layui-icon-chart"></i>
                <cite>充值统计</cite></a>
        </li>

        <?php } ?>
        <?php  if($powers[0]==1 || (isset($powers[6]) && $powers[6]==1)){ ?>
            <li data-name='3' class="layui-nav-item">
                <a lay-href='/Stats/keep' lay-tips='留存统计' lay-direction='2'>
                    <i class="layui-icon layui-icon-chart-screen "></i>
                    <cite>留存统计</cite></a>
            </li>

        <?php } ?>
        <?php  if($powers[0]==1 || (isset($powers[5]) && $powers[5]==1)){ ?>
            <li data-name='4' class="layui-nav-item">
                <a  lay-href='/Stats/brnn' lay-tips='游戏统计' lay-direction='2'>
                    <i class="layui-icon layui-icon-engine"></i>
                    <cite>游戏统计</cite></a>
            </li>
        <?php } ?>

        <?php  if($powers[0]==1 || (isset($powers[12]) && $powers[12]==1)){ ?>
            <li data-name='6' class="layui-nav-item">
                <a  lay-href='/broadcast/gamenotice' lay-tips='游戏公告' lay-direction='2'>
                    <i class="layui-icon layui-icon-speaker "></i>
                    <cite>游戏公告</cite></a>

            </li>
        <?php } ?>
        <?php  if($powers[0]==1 || (isset($powers[1]) && $powers[1]==1)){ ?>
        <li data-name='6' class="layui-nav-item">
            <a  lay-href='/broadcast/index' lay-tips='跑马灯公告' lay-direction='2'>
                <i class="layui-icon layui-icon-reply-fill"></i>
                <cite>跑马灯公告</cite></a>

        </li>
        <?php } ?>

        <?php if($powers[0]==1 || (isset($powers[9]) && $powers[9]==1)){ ?>
            <li data-name='7' class="layui-nav-item">
                <a  href="javascript:void(0);" lay-tips='权限设定' lay-direction='2'>
                    <i class="layui-icon layui-icon-set-fill "></i>
                    <cite>权限设定</cite>
                    <span class="layui-nav-more"></span></a>
                <dl class="layui-nav-child">
                    <dd><a lay-href='/power/register'><i class="layui-icon layui-icon-add-1"></i>创建管理员</a></dd>
                    <dd><a lay-href='/power/select'><i class="layui-icon layui-icon-edit"></i>修改管理员</a></dd>
                    <dd><a lay-href='/power/gameid'><i class="layui-icon layui-icon-edit"></i>gameid</a></dd>
                    <dd><a lay-href='/broadcast/czlogs'><i class="layui-icon layui-icon-notice"></i>操作日志</a></dd>
                    <dd><a lay-href='/broadcast/login_logs'><i class="layui-icon layui-icon-loading"></i>登陆日志</a></dd>
                   <!-- <dd><a lay-href='/broadcast/money_logs'><i class="layui-icon layui-icon-snowflake"></i>扣除金币日志</a></dd>-->
                </dl>
            </li>
        <?php } ?>
        <?php  if($powers[0]==1 || (isset($powers[92]) && $powers[92]==1)){ ?>
        <li data-name='4' class="layui-nav-item">
            <a  href="javascript:void(0);" lay-tips='在线客服' lay-direction='2'>
                <i class="layui-icon layui-icon-chat"></i>
                <cite>在线客服</cite>
                <span class="layui-nav-more"></span></a>
            <dl class="layui-nav-child">
                <dd><a lay-href='/Broadcast/customer'>未处理</a></dd>
                <dd><a lay-href='/Broadcast/ycustomer'>已处理</a></dd>
            </dl>
        </li>
        <?php } ?>
        <?php  if($powers[0]==1 || (isset($powers[91]) && $powers[91]==1)){ ?>
        <li data-name='4' class="layui-nav-item">
            <a  lay-href='/User/payment' lay-tips='支付配置' lay-direction='2'>
                <i class="layui-icon layui-icon-dollar"></i>
                <cite>支付配置</cite></a>
        </li>
        <?php } ?>
    </ul>
</ul>